<?php
require_once "../../../libs/ttServer.php";

$tt = new ttServer();

//define('securePOST', 'secureGET');

if ($tt->session->is_login())
{

	$usr_id = $tt->session->user['uid'];
	$state_id = secureGET("uid");

	if (!is_numeric($state_id))
	{
		echo FormatAPIOutput($tt->please_check_parameters());
	}
	else
	{
		echo FormatAPIOutput($tt->remove_travel_state($usr_id, $state_id));
	}
}
else
{
	echo FormatAPIOutput($tt->session->please_login());
}


?>